<script >
import {logouts} from "@/api";
export  default {
  methods:{
    logOutFun(){
      let data = {
        userId:15
      }
      logouts(data).then((res)=>{
        if(res.code == 200){
          localStorage.clear()
          window.location.href='http://192.168.31.3:8045/#/login_auth'
        }
      })
    }
  }
}
</script>
<template>
 <div @click="logOutFun">
   <el-button style="margin-left: 20px" size="small">退出</el-button>
 </div>
</template>

<style scoped>

</style>
